<template>
  <div>
    <div>
      <router-link to="/find">发现音乐</router-link>
      <router-link to="/my">我的音乐</router-link>
      <br />
      <router-link to="/find/recommed">推荐</router-link>
      <router-link to="/find/ranking">排行榜</router-link>
      <router-link to="/find/songlist">歌单</router-link>
    </div>
    <button @click="goTo">跳转</button>
    <div>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  name: "Find",
  methods: {
    goTo() {
      this.$router.push({
        name: "My",
        query: {
          chao: "chang"
        },
        params: {
          wang: "18"
        }
      });
      //   this.$router.replace({
      //     name: "My",
      //     query: {
      //       chao: "chang"
      //     },
      //     params: {
      //       wang: "18"
      //     }
      //   });
    }
  }
};
</script>

<style scoped>
</style>